package dm1101.demo04;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/1 16:45
 */
public class Belle extends Thread{
    private BankCard bankCard;
    public Belle(BankCard bankCard){
        this.bankCard=bankCard;
    }

    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            bankCard.token(5000);
        }
    }
}
